#include "stdafx.h"
#include "Resource.h"
#include <iostream>

using namespace std;

Resource::Resource(std::string n):name(n)
{
	cout <<"Constracting " << name << endl;
}
Resource::Resource(const Resource& r):name(r.name)
{
	cout <<"Constracting copy " << name << endl;
}
Resource& Resource::operator=(const Resource& r)
{
	name = r.GetName();
	cout << "copy assigning" << name << endl;
	return *this;

}

Resource::~Resource(void)
{
	cout << "destricting" << name << endl;
}
